package cn.edu.scau.cmi.yejiancong.ORM_hibernate.entiry;

import java.util.HashSet;
import java.util.Set;

public class Student {
	private int studentid;
	private String studentname;
	private Set<Teacher> teachers =new HashSet<>();
	private Teacher tutor=null;
	public int getStudentid() {
		return studentid;
	}
	public void setStudentid(int studentid) {
		this.studentid = studentid;
	}
	public String getStudentname() {
		return studentname;
	}
	public void setStudentname(String studentname) {
		this.studentname = studentname;
	}
	public Set<Teacher> getTeachers() {
		return teachers;
	}
	public void setTeachers(Set<Teacher> teachers) {
		this.teachers = teachers;
	}
	public Teacher getTutor() {
		return tutor;
	}
	public void setTutor(Teacher tutor) {
		this.tutor = tutor;
	}
	
	@Override
	public String toString() {
		return "student id: ["+studentid+"] student name: "+studentname+" student's tutor: "+tutor;
	}

}
